/**
 * 共享的右键菜单类型定义
 */

export interface ContextMenuItem {
  label?: string
  icon?: string
  type?: 'normal' | 'separator' | 'submenu' | 'checkbox' | 'radio'
  enabled?: boolean
  visible?: boolean
  checked?: boolean
  submenu?: ContextMenuItem[]
}

export interface MenuDisplayOptions {
  x?: number
  y?: number
}

export interface ContextMenuItemWithFn extends ContextMenuItem {
  click?: () => void
  submenu?: ContextMenuItemWithFn[]
}
